package com.yasaka.stock.model;

import com.yasaka.stock.common.Msg;

public class TCountWord {

	private int ZHCount;
	private int ENCount;
	private int CharCount;
	private int Start;
	private String Message;
	
	public int getZHCount() {
		return ZHCount;
	}

	public int getENCount() {
		return ENCount;
	}

	public int getCharCount() {
		return CharCount;
	}
	public void setZHCount(int zHCount) {
		ZHCount = zHCount;
	}

	public void setENCount(int eNCount) {
		ENCount = eNCount;
	}

	public void setCharCount(int charCount) {
		CharCount = charCount;
	}

	public void setCountWord(TCountWord aCountWord) {
		ZHCount += aCountWord.getZHCount();
		ENCount += aCountWord.getENCount();
		CharCount += aCountWord.getCharCount();
	}

	public int countWord() {
		return ZHCount > ENCount ? ZHCount : ENCount;
	}
	
	public int getStart() {
		return Start;
	}

	public String getMessage() {
		return Message;
	}


	public void setMessage(String message) {
		Message = message;
	}

	public void setStart(int start) {
		Start = start;
		Message = Msg.getMsg("file.state.code."+start);
	}

	public TCountWord(){
		
	}
	
	public TCountWord(int aStart){		
		Start = aStart;
		Message = Msg.getMsg("file.state.code."+aStart);		
	}
	
	public TCountWord(int aStart,String aMsg){		
		Start = aStart;
		Message = Msg.getMsg("file.state.code."+aStart) + "  info: "+ aMsg;		
	}
	
	
	@Override
	public String toString(){
		return "ZHCount:" + ZHCount+"  ENCount:"+ ENCount + " CharCount:" + CharCount;
		
	}

}
